/* 
 * 路由表对象：
 * 该文件挂载在Vue原型中 $mRoutesConfig
 * 作用：调用$mRouter对象的方法 传入以下对应的路由对象，详细见common目录下的router.js
 * 示例：this.$mRouter.push({route:this.$mRoutesConfig.main,query:{a:1}})
 * 注意：所有在pages目录下新建的页面都必须在"路由表"中进行声明，并且在框架的pages.json注册。
 * 
 * 配置参数项说明： 
 * name:可选配置 （路由名称）
 * path:必填配置 （路由地址）
 * requiresAuth:可选配置 （是否权限路由）
 */

export default {
	// 权限路由
	user: {
		name: "个人中心",
		path: "/pages/user/user",
		requiresAuth: true,
		isTabBar:true,
	},
	set: {
		name: "设置",
		path: "/pages/set/set",
		requiresAuth: true,
		isTabBar:false,
	},
	collector: {
		name: "收藏夹",
		path: "/pages/collector/collector",
		requiresAuth: true,
		isTabBar:true,
	},
	categorys: {
		name: "分类",
		path: "/pages/categorys/categorys",
		requiresAuth: true,
		isTabBar:true,
	},
	cart: {
		name: "个人中心",
		path: "/pages/cart/cart",
		requiresAuth: true,
		isTabBar:false,
	},
	address: {
		name: "地址管理",
		path: "/pages/address/address",
		requiresAuth: true,
		isTabBar:false,
	},
	addressEdit: {
		name: "地址管理",
		path: "/pages/address/address_edit",
		requiresAuth: true,
		isTabBar:false,
	},
	//健康类
	upload: {
		name: "数据上传",
		path: "/pages/health/upload",
		requiresAuth: true,
		isTabBar:false,
	},
	healthReport: {
		name: "地址管理",
		path: "/pages/health/report",
		requiresAuth: true,
		isTabBar:false,
	},
	
	
	
	
	//订单类
	toVip: {
		name: "成为VIP",
		path: "/pages/order/to_vip_order",
		requiresAuth: true,
		isTabBar:false,
	},
	orderEdit: {
		name: "订单编辑",
		path: "/pages/order/order_edit",
		requiresAuth: true,
		isTabBar:false,
	},
	orderDetail: {
		name: "订单编辑",
		path: "/pages/order/order_detail",
		requiresAuth: true,
		isTabBar:false,
	},
	order: {
		name: "订单编辑",
		path: "/pages/order/order",
		requiresAuth: true,
		isTabBar:false,
	},
	
	
	// 非权限路由
	main: {
		name: "首页",
		path: "/pages/index/index",
		isTabBar:true,
	},
	category: {
		name: "栏目",
		path: "/pages/category/category",
		isTabBar:false,
	},
	detail: {
		name: "普通商品详情页",
		path: "/pages/detail/detail",
		isTabBar:false,
	},
	audio_detail: {
		name: "音频详情页h5",
		path: "/pages/detail/audio_detail",
		isTabBar:false,
	},
	article_detail:{
		name: "文章详情页",
		path: "/pages/detail/article_detail",
		isTabBar:false,
	},
	//登录
	login: {
		name: "登录",
		path: "/pages/login/login",
		isTabBar:false,
	},
	wxXcxlogin: {
		name: "微信小程序登录",
		path: "/pages/login/wx_xcx_login",
		isTabBar:false,
	},
	
	//微信h5登录
	wxh5login: {
		name: "微信h5登录",
		path: "/pages/login/wx_h5_login",
		isTabBar:false,
	},
	//微信h5静默登录
	wxh5SilentLogin: {
		name: "微信h5静默登录",
		path: "/pages/login/wx_h5_silent_login",
		isTabBar:false,
	},
	wxCheckCode: {
		name: "微信checkCode",
		path: "/pages/login/wx_h5_check_code",
		isTabBar:false,
	}

}
